package com.xidian.zhiancloud.controller.luling.RiskIdentificationPart;
import com.xidian.zhiancloud.dto.ResultDTO;
import com.xidian.zhiancloud.enums.GeneralResponseEnums;
import com.xidian.zhiancloud.service.luling.RiskIdentificationPart.RiskEvalAuditStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.sql.Date;
/**
        ** 风险评价审核接口
        * @Author:luling
        * @Date:2021/1/7   15:24
        */
@RestController
@RequestMapping("/RiskEvalAuditStatus")
public class RiskEvalAuditStatusController {
    @Autowired
    private RiskEvalAuditStatusService riskEvalAuditStatusService;
///**
// * 列表查询
//      *
//      * @param  type 辨识评价类型
//      * @param riskName 辨识评价计划名称
//      * @param  state  状态
//      * @param   key    关键字
//      * @param current   分页偏移量
//      * @param size    每一页的数量
//      * @return 返回风险评价列表
//   **/
//    @GetMapping("/getList")
//    public ResultDTO get<Object>getList(@RequestParam(value = "type", required = false) String type,
//                             @RequestParam(value = "riskName", required = false) String riskName,
//                             @RequestParam(value = "state", required = false) String state,
//                             @RequestParam(value = "key", required = false) String key,
//                             @RequestParam(value = "current", required = true) int current,
//                             @RequestParam(value = "size", required = true) int size) {
//                             return ResultDTO.successOf(riskEvalAuditStatusService.getList(type,state,key, riskName,current,size), GeneralResponseEnums.SUCCESS);
//
//}
//    /**
//     * 根据state查询风险评价审核信息
//     *
//     * @param state 状态
//     * @return 返回ResultDTO对象
//     **/
//    @GetMapping("/getById/{state}")
//    public ResultDTO <Boolean>getById(
//            @PathVariable String state) {
//        return ResultDTO.successOf(riskEvalAuditStatusService.getById(state), GeneralResponseEnums.SUCCESS);
//    }

}
